<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<title>个人中心</title>
		<link rel="stylesheet" href="/mobile/layui/css/layui.css" />
		<link rel="stylesheet" href="/mobile/css/mobile.css" />
		<script src="/mobile/js/jquery.min.js"></script>
		<script src="/mobile/js/jquery.easing.min.js"></script>
		<script src="/mobile/layui/layui.js"></script>
		<style>
			.layui-form-item {
			    margin-bottom: 0;
			}
		</style>
	</head>
	<body>
		<div class="main user_center">
			<div style="display: flex;align-items: center; padding: 25px 0;">
				<div class="avatar">
					<img src="{$user.avatar|htmlentities|cdnurl}" />
				</div>
				<!-- <a>立即登录</a> -->
				<div style="flex:1;display: flex; align-items: center; justify-content: space-between;">
					<div style="flex: 1;">
						<p style="margin-bottom: 6px;">{$user.nickname|htmlentities}</p>
						<span style="color:#999;">ID：{$user.id|htmlentities}</span>
					</div>
					<a style="padding: 10px 0 10px 10px;" href="{:url('user/set')}"><i class="iconfont" style="color:#999">&#xe6a3;</i></a>
				</div>
			</div>
			<div class="chengweihuiyuan">
				<img src="/mobile/img/bg_chengweihuiyuan.png" >
				{if($user.company_id!=0)}
    				<div>
    					<div class="left">
    						<p>我的企业</p>
    					</div>
    					<a class="btn" href="{:url('user/mycompany')}">点击进入</a>
    				</div>
    				
				{else/}
				    <div>
    					<div class="left">
    						<p>升级成企业</p>
    						<p>上传企业简介及产品</p>
    					</div>
    					{if($rs_qiyeshenpi.status=='-1')}
    					    <a class="btn" href="{:url('user/become_company_result')}">点击升级</a>
    					{else if($rs_qiyeshenpi.status=='0') /}
    					    <a class="btn" href="{:url('user/become_company_result')}">点击升级</a>
    					{/if}
    				</div>
				{/if}
				
			</div>
			<ul class="cells">
				<a href="{:url('user/wode_dingyue')}"><li class="item">
					<i class="iconfont">&#xe7ff;</i> 我的订阅
				</li></a>
				<a href="{:url('index/single',['article'=>'aboutus'])}"><li class="item">
					<i class="iconfont">&#xe6e4;</i> 关于我们
				</li></a>
				<a href="{:url('index/single',['article'=>'guangxuanhezuo'])}"><li class="item">
					<i class="iconfont">&#xe618;</i> 广宣合作
				</li></a>
			<ul>
		</div>
		{include file="common/footer"}	
	</body>
</html>